/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package agenda.calendario.DAL;

import framework.dal.ItemDB;
import static framework.dal.ItemDB.getLastInteger;
import framework.groups.GroupStrategy;
import framework.groups.Item;

/**
 *
 * @author Sergio Carlos Peres
 */
public class CompromissoItemDB extends ItemDB {
    
    public static boolean add(agenda.calendario.Compromisso n) {
        return framework.dal.Link.add(nameTableItem, "(" + (getLastInteger() + 1) 
                + ", '" + n.getCompomisso() + "', '" + n.getData() 
                + "', '" + n.getDesc() + "', " + n.getCodigoContato() 
                + ", '" + n.getEndereco() + "', 'F')");
    }
}
